package composite;
/**
 * 这是一个抽象的组合类
 * @author zj
 *
 */
public abstract class Component {
private String name;
private String postion;
private int salary;

	public Component(String name,String postion,int salary) {
		this.name=name;
		this.postion=postion;
		this.salary=salary;
	}
	public void  getInfo() {
		System.err.println(name+":"+postion+":"+salary);
	}
}
